<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ page isELIgnored="false" %>
<%--
  Created by IntelliJ IDEA.
  User: Tiler
  Date: 2020/11/5
  Time: 10:05
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<h3 align="center">用户列表</h3>
<table border="1" cellspacing="0" align="center" width="50%">
    <tr>
        <th>编号</th>
        <th>姓名</th>
        <th>性别</th>
        <th>生日</th>
        <th>用户名</th>
        <th>密码</th>
        <th>操作</th>
    </tr>
    <c:forEach items="${users}" var="u">
        <tr>
            <td>${u.uid}</td>
            <td>${u.name}</td>
            <td>${u.sex}</td>
            <td>
                <fmt:formatDate value="${u.birthday}" pattern="yyyy年MM月dd日"/>
            </td>
            <td>${u.username}</td>
            <td>${u.password}</td>
            <td><a href="">修改</a> / <a href="">删除</a></td>
        </tr>
    </c:forEach>
</table>
</body>
</html>
